<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>2020"融微杯"采集配置比赛</title>

	<!-- responsive meta -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- For IE -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

<style>

body{
	margin:0;
	padding:0;
}

ul li{
  list-style:none;
}

div.main{
	margin:auto;
	text-align: center;
}

h1 {
    font-family:"微软雅黑";
    font-size:40px;
    margin:10px 0;
    border-bottom:solid 1px #ccc;
    padding-bottom:20px;
    letter-spacing:2px;
    color:#3498DB;
 }


 h2 span.green {
    background:#00994d;
    color:#fff;
    line-height:49px;
    font-size:36px;
    font-family:Arial;
    padding:0 10px;
    margin-right:10px;
    border-radius:5px;
    box-shadow:1px 1px 3px rgba(0,0,0,0.2);
}

h2 span.red {
    background:#C71C60;
    color:#fff;
    line-height:49px;
    font-size:36px;
    font-family:Arial;
    padding:0 10px;
    margin-right:10px;
    border-radius:5px;
    box-shadow:1px 1px 3px rgba(0,0,0,0.2);
}


h2 span.blue {
    background:#007fff;
    color:#fff;
    line-height:49px;
    font-size:36px;
    font-family:Arial;
    padding:0 10px;
    margin-right:10px;
    border-radius:5px;
    box-shadow:1px 1px 3px rgba(0,0,0,0.2);
}

h2{
    font-family:"微软雅黑";
    font-size:30px;
    margin:2px 0;
    border-bottom:solid 1px #ccc;
    padding-bottom:12px;
    padding-bottom:10px;
    letter-spacing:2px;
 }


.text_mini{
	font-family:"微软雅黑";
    font-size:25px;
    margin:20px 0;
	letter-spacing:2px;
}

img{
	width:720px
}

.div-left{
  text-align:left;
  margin:0 0 0 90px;
}

#tab2{
  padding:20px;
}

table.table{
  width:100%;
  border:1px solid #000;
}

table.table th{
  background:#B4C6E7;
}

table.table td{
  border-right:1px solid #000;
  border-top:1px solid #000;
  padding:2px;
}

table.table td:last-child{
  border-right:0;
}

.tabs li{
  display:inline;
  
}

.tabs li{
  border:1px solid #ECF0F1;
  border-radius: 5px;
  background:#F4F6F7;
  padding:10px 30px;
}

.tabs li.active{
  background:#FF5733;
  font-weight:bold;
}

.tabs li.active a{
  color:#fff;
}

.tabs li a{
  color:#000;
  text-decoration: none;
}

.tab_container div{
  border:1px solid #ECF0F1;
}

</style>

</head>
<body>

<div class="main">
<h1>2020"融微杯" 采集配置比赛</h1>

<h2>当前时间：<span id="data"></span></h2>

<h2 id="show"><span id="timeTit"></span><span id="_d"></span>天<span id="_h"></span>小时<span id="_m"></span>分<span id="_s"></span>秒</h2>

<div class="div-left">
<ul>
  <li>
  <h3>1、采集网站的入口: http://192.168.11.158:3333/
  </h3>
  </li>
  <li>
  <h3>2、辅助工具的下载链接: https://pan.baidu.com/s/1yHSf8rEOcdK_jJ4v0WZJoQ 提取码: buaa
  </h3></li>
</ul>
</div>


<div class="container"> 
		
		<ul class="tabs"> 
			<li class="active"><a href="#tab1">赛制评判规则</a></li>
      <li><a href="#tab2">VNP账号表</a></li>
      <li><a href="#tab3">09月24日-评分表</a></li>  
	 <!--<li><a href="#tab4">09月23日-评分表</a></li>
      <li><a href="#tab5">09月24日-评分表</a></li>
      <li><a href="#tab6">悬赏任务评分表</a></li>-->
      <li><a href="#tab7">采集类比赛积分汇总表</a></li>  
		</ul> 
		<div class="tab_container"> 
			<div id="tab1" class="tab_content" style="display: block; "> 
				
				    <span class='text_mini'>赛制评判规则</span><br/>
	          <img src="png1.png" alt="">
			</div>


      <div id="tab2" class="tab_content" style="display: none; "> 
				 <table cellpadding='0' cellspacing='0' class="table">
    <thead>
      <tr>
      <th width="5%">序号</th>
      <th>VPN账号</th>
      <th>密码</th>
      </tr>
    </thead>
    <tbody>
     <tr>
      <td>1</td>
      <td>user3</td>
      <td>p@ssw0rddp</td>
     </tr>
     <tr>
      <td>2</td>
      <td>user4</td>
      <td>p@ssw0rddp</td>
     </tr>
     </tbody>
    </table>

			</div>  

      <div id="tab3" class="tab_content" style="display: none; "> 
				  <iframe name="" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" width="1200" height="1920" src="9.24采集配置比赛评分.htm"></iframe>
			</div> 
			
			<!--<div id="tab4" class="tab_content" style="display: none; "> 
			  <iframe name="" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" width="1200" height="1920" src="9.23采集配置比赛评分.htm"></iframe>
			</div> 
	

    	<div id="tab5" class="tab_content" style="display: none; "> 
				   <iframe name="" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" width="1200" height="1920" src="9.24采集配置比赛评分.htm"></iframe>
			</div> 
		
    
    	<div id="tab6" class="tab_content" style="display: none; "> 
			     <iframe name="" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" width="1200" height="1920" src="悬赏任务比赛评分.htm"></iframe>
			</div> -->

      <div id="tab7" class="tab_content" style="display: none; "> 
      
      <iframe name="" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" width="900" height="1920" src="9.24采集配置比赛评分.htm"></iframe>

      </div>


      </div>
</div>


<script src="jquery-3.5.1.min.js"></script>

<script>

  $(document).ready(function() { 
  
 //默认active 
 $(".tab_content").hide(); //隐藏全部的tab菜单内容
 $("ul.tabs li:first").addClass("active").show(); //对第一个li标签添加class="active属性" 
 $(".tab_content:first").show(); //显示第一个tab内容 
   
 //点击事件 
 $("ul.tabs li").click(function() { 
  $("ul.tabs li").removeClass("active"); //移除class="active"属性
  $(this).addClass("active"); //添加class="active"到选择标签中 
  $(".tab_content").hide(); //隐藏全部标签内容 
  var activeTab = $(this).find("a").attr("href"); //找到所属属性值来识别活跃选项卡和内容 
  $(activeTab).fadeIn(); //使内容消失 
  return false; 
 }); 
  
});

</script>
<script>
    //设置开始时间
    var begDate = new Date("2020-09-24 16:30:00");
    //设置结束时间
    var endDate = new Date("2020-09-24 17:30:00");
    var end = endDate.getTime(); // 结束秒数
    var beg = begDate.getTime(); // 开始秒数

    function countTime() {
      //获取当前时间
      var date = new Date();
      var Mydata = date.toLocaleString();
      // 当前时间秒数
      var now = date.getTime();
      //时间差
      var leftTime = end - now; // 结束秒数 - 现在秒数
      var begTime = beg - now;  // 开始秒数 - 现在秒数
      //定义变量 d,h,m,s保存倒计时的时间
      var d, h, m, s;
      var timeTit = document.getElementById('timeTit'); // 时间前文档
      var myTit = document.getElementById("data");
      var h2Red =  document.getElementById("show").getElementsByTagName("span")

      myTit.innerHTML = Mydata;

      if(begTime>=0){ //  如果开始时间大于等于0 的时候 执行
        timeTit.innerHTML = '距离比赛开始'
        d = Math.floor(begTime / 1000 / 60 / 60 / 24);
        h = Math.floor(begTime / 1000 / 60 / 60 % 24);
        m = Math.floor(begTime / 1000 / 60 % 60);
        s = Math.floor(begTime / 1000 % 60);

        document.getElementById("_d").innerHTML = d ;
        document.getElementById("_h").innerHTML = h ;
        document.getElementById("_m").innerHTML = m ;
        document.getElementById("_s").innerHTML = s ;

        
        h2Red[0].setAttribute("class", "green");
        h2Red[1].setAttribute("class", "green");
        h2Red[2].setAttribute("class", "green");
        h2Red[3].setAttribute("class", "green");
        h2Red[4].setAttribute("class", "green");
       

    
      }else if (leftTime >= 0) { // 当结束时间大于等于0 的时候执行这里
        timeTit.innerHTML = '距离比赛结束'
        d = Math.floor(leftTime / 1000 / 60 / 60 / 24);
        h = Math.floor(leftTime / 1000 / 60 / 60 % 24);
        m = Math.floor(leftTime / 1000 / 60 % 60);
        s = Math.floor(leftTime / 1000 % 60);
        //将倒计时赋值到div中
        document.getElementById("_d").innerHTML = d ;
        document.getElementById("_h").innerHTML = h ;
        document.getElementById("_m").innerHTML = m ;
        document.getElementById("_s").innerHTML = s ;
        //递归每秒调用countTime方法，显示动态时间效果


        h2Red[0].setAttribute("class", "red");
        h2Red[1].setAttribute("class", "red");
        h2Red[2].setAttribute("class", "red");
        h2Red[3].setAttribute("class", "red");
        h2Red[4].setAttribute("class", "red");

      } else {  // 结束的时候执行这里
        timeTit.innerHTML = '比赛已经结束';
        document.getElementById("_d").innerHTML = 0 ;
        document.getElementById("_h").innerHTML = 0 ;
        document.getElementById("_m").innerHTML = 0 ;
        document.getElementById("_s").innerHTML = 0 ;

        h2Red[0].setAttribute("class", "blue");
        h2Red[1].setAttribute("class", "blue");
        h2Red[2].setAttribute("class", "blue");
        h2Red[3].setAttribute("class", "blue");
        h2Red[4].setAttribute("class", "blue");

        clearTimeout(countTime); //  结束的时候清除定时器
        return;  // 并停止这个函数
      }
      setTimeout(countTime, 1000); // 每一秒执行一次这个函数
    }
    countTime(); // 执行函数

</script>

</body>
</html>
